package com.netty.common.entity.bo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author LiuXiaoYu
 * @date 2022/2/8- 14:11
 */
@Data
public class GroupFormBo {
    /**群名*/
    @NotBlank(message = "群名称不能为空")
    @NotNull(message = "群名称不能为空")
    private String groupName;

    /**群图像*/
    @NotBlank(message = "群头像不能为空")
    @NotNull(message = "群头像不能为空")
    private String image;

    /**群描述*/
    private String description;

    /**哪位用户创建*/
    @NotNull(message = "群主id不能为空")
    private Integer admin;
}
